package com.blazer.e;

public class test02 {
    public static void main(String[] args) {
        Student student=new Student();
        student.setSid(1);
        student.setSname("刘");
        System.out.println(student.getSid());
        System.out.println(student.getSname());
        Student student1=new Student(1,"航");
        System.out.println(student1.getSid());
        System.out.println(student1.getSname());
//private作用域 私有的，别的类不能直接调用
        //空参构造作用 new对象
        //有参构造作用 new对象 为属性赋值
        //set为属性赋值
        //get获取属性值
        //this区分重名的成员变量和局部变量
        //快速生成javabean alt+insert

    }
}
